package com.auxgroup.smarthome.inner.repo;

import com.auxgroup.smarthome.inner.entity.DeviceRepairEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * Created by lixiaoxiao on 17-8-10.
 */
public interface DeviceRepairRepo extends JpaRepository<DeviceRepairEntity,String>,JpaSpecificationExecutor<DeviceRepairEntity> {
    DeviceRepairEntity findByMacAndFaultTypeAndFaultStatus(String mac,String faultType,Integer faultStatus);
}
